<extend name="Layout:layout_content" />
<block name="body_main">
    <div class="grid-parent xsui-page-header">
        <form method="post" action="{:U('reply_edit_save')}">
            <table>
                <tr><th valign="top" class="xsui-nowrap">回复内容：</th><td><textarea name="content" rows="6" cols="110">{$data.content}</textarea></td></tr>
                <tr><th>&nbsp;</th>
                    <td>
                        <button type="submit" class="ui-state-default" style="padding:3px 10px; border-radius: 5px;"><i class="fa fa-save"></i>发布</button>
                        <button type="reset" class="ui-state-default" style="padding:3px 10px; border-radius: 5px;">重置</button>
                    </td>
                </tr>
            </table>            
            <input type="hidden" name="pid" value="{$data.pid}" />
            <input type="hidden" name="id" value="{$data.id}" />
        </form>
    </div>
    <div id="grid-container">
        {$content}
    </div>
</block>
<block name="body_after">    
    <script type="text/javascript">
        $(function () {
            // 状态显示处理 2016-1-18 SoChishun Added.
            // 如：<td class="status"><a href="AddonU('change_status','id='.$vo['id'].'&status=varstatus')" title="点击隐藏" data-value="$vo.status" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
            $('td.status a').togglelink();
            // 动态更改排序 2015-10-24 SoChishun Added.
            $('td.sort input').blur(function () {
                var $input = $(this);
                change_sort($input);
            })
            //ajax_combobox({selector: 'select[name="category_id"]', def_option: '请选择类别'});
        })
    </script>
</block>